<?php
session_start();
$error = $_SESSION['login_error'] ?? '';
unset($_SESSION['login_error']); // 清除已显示的错误
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Blog 系统</title>
        <link rel="stylesheet" href="CSS/blog_login.css">
    <link rel="stylesheet" href="style.css">

</head>
<body>
    <div class="container">
        <!-- 顶部导航栏 -->
        <div class="header">
            <div class="logo">
                <img src="log.png" alt="Logo" style="height: 25px;">
                <span style="margin-left: 20px;font-size: 25px;">我的博客</span>
            </div>
            <div>
                <a style="font-size: 15px;" href="#">主页</a>
            </div>
        </div>
        <!-- From Uiverse.io by ammarsaa --> 
        <form class="form">
            <p class="title">Register </p>
            <p class="message">Signup now and get full access to our app. </p>
                <div class="flex">
                <label>
                    <input class="input" id="name" type="text" name="username"  placeholder="" required="">
                    <span>name</span>
                </label>

                <label>
                    <input class="input" id="id" type="text" name="id" placeholder="" required="">
                    <span>id</span>
                </label>
            </div>                  
            <label>
                <input class="input" id="password" type="password" name="password" placeholder="" required="">
                <span>Password</span>
            </label>
            <label>
                <input class="input" id="password2" type="password" name="password2" placeholder="" required="">
                <span>Confirm password</span>
            </label>
            <label>
                <input class="input" id="sex" type="text" name="sex" placeholder="" required="">
                <span>phone</span>
            </label> 
            <label>
                <input class="input"id="phone" type="text" name="phone" placeholder="" required="">
                <span>phone</span>
            </label> 
            <label>
                <input class="input" id="addr" type="text" name="addr" placeholder="" required="">
                <span>phone</span>
            </label> 
            <button class="submit">Submit</button>
            <p class="signin">Already have an acount ? <a href="#">Signin</a> </p>
        </form>
    </div>
</body>
</html>